package spring.JUNIT.aop.adviceor;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.BlockJUnit4ClassRunner;
import spring.JUNIT.UnitTestBase;
import spring.JUNIT.aop.adviceor.service.InvokeService;


@RunWith(BlockJUnit4ClassRunner.class)
public class TestAop extends UnitTestBase {

	public TestAop() {
		super("D:/spring/spring-aop-advice.xml");

	}

	@Test
	public void testService() {
		InvokeService service = super.getBean("invokeService");
		service.invoke();
		System.out.println("-----------");
		service.invokeException();
	}
}
